package controle;

import javax.faces.bean.ManagedBean;

import dominio.Login;

@ManagedBean(name="LoginMB")
public class LoginManagedBean {
	private Login login = new Login();

	public Login getLogin() {
		return login;
	}

	public void setLogin(Login login) {
		this.login = login;
	}

	public String fazerLogin() {
		if (login.getLogin() == "" && login.getSenha() == "") {
			return "/faces/paginas/principal.xhtml";
		} else {
			return "/index";
		}

	}

}
